﻿using fasc_openapi_donet_sdk.Model.CommonModel;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace fasc_openapi_donet_sdk.Model.ResponseModel.ClientDocumentManage
{
    /// <summary>
    /// 获取签署模板详情
    /// </summary>
    public class GetSignTemplateDetailRes
    {
        public string signTemplateId { get; set; }
        public string signTemplateName { get; set; }
        public string signTemplateStatus { get; set; }
        public DocumentInfo[] docs { get; set; }
        public AttachInfo[] attachs { get; set; }
        public bool fillInOrder { get; set; }
        public bool signInOrder { get; set; }
        public FillActorInfo[] fillActors { get; set; }
        public SignActorInfo[] signActors { get; set; }
    }
    public class DocumentInfo
    {
        public int docId { get; set; }
        public string docName { get; set; }
        public Field[] docFields { get; set; }
    }

    public class AttachInfo
    {
        public int attachId { get; set; }
        public string attachName { get; set; }
    }

    public class FillActorInfo
    {
        public string actorId { get; set; }
        public int orderNo { get; set; }
        public string actorIdentType { get; set; }
        public FillActorFieldInfo[] fillActorFields { get; set; }
    }

    public class FillActorFieldInfo
    {
        public int fieldDocId { get; set; }
        public string fieldId { get; set; }
    }

    public class SignActorInfo
    {
        public string actorId { get; set; }
        public int orderNo { get; set; }
        public string actorIdentType { get; set; }
        public bool corpOperatorSign { get; set; }
        public string signerSignMethod { get; set; }
        public SignActorFieldInfo[] signActorFields { get; set; }
    }

    public class SignActorFieldInfo
    {
        public int fieldDocId { get; set; }
        public string fieldId { get; set; }
    }

}
